all: thipx32 server

thipx32:
	i586-mingw32msvc-gcc -Wl,--enable-stdcall-fixup -Wall -Os -shared -o thipx32.dll thipx32.c sockets.c config.c thipx32.def -lws2_32
	i586-mingw32msvc-gcc -Wl,--enable-stdcall-fixup -Wall -Os -shared -o wsock32.dll wsock32.c sockets.c config.c wsock32.def -lws2_32
	i586-mingw32msvc-strip -s thipx32.dll
	i586-mingw32msvc-strip -s wsock32.dll

server:
	gcc -Wall -g -o cncnet server.c sockets.c protocol.c

clean:
	rm -f thipx32.dll wsock32.dll cncnet *.o
